#ifndef TTCLIENT_H
#define TTCLIENT_H

#include "IttClient.h"
#include "mySingleton.h"
#include "ttPack.h"

#include <windows.h>

class ttClient:
	public IttClient, public Singleton<ttClient>
{
private:
	char m_hostIP[20];
	int m_hostPort;
public:
	ttClient();
	~ttClient();
	int setIPandPortandName(char *, int, WCHAR *);
	int ttConnect();
public:
	virtual int move(float speed);
	virtual int speak(WCHAR *sentence);
public:
	static DWORD WINAPI recvWorkThread(LPVOID pParam);
	static DWORD WINAPI sendWorkThread(LPVOID pParam);
	static int answer(IttClient*, pttpack);
};
#endif